# Author: Ziyin
# week_07：枚举

stu_id = [95,96,97,90,90,97,88,90]

# 删除 97 的值
# 方法1：remove 怎么删干净?
'''
while True: # 用循环的方式可以删除大量数据
    if 97 in stu_id:
        stu_id.remove(97)
    else:
        break
print(stu_id)
'''
# 方法2：pop()
# print(stu_id.index(97))
for index,item in enumerate(stu_id):
    print(index,item)
    if item == 97:
        print(index)
        stu_id.pop(index)
print(stu_id)
